<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $img_url?>style/css/zoomimage.css" />
<script type="text/javascript" src="<?php echo $img_url?>style/js/eye.js"></script>
<script type="text/javascript" src="<?php echo $img_url?>style/js/utils.js"></script>
<script type="text/javascript" src="<?php echo $img_url?>style/js/zoomimage.js"></script>
<script>
$(document).ready(function()
{
	$('a.lightsGal').zoomimage();
});
</script>
<link rel="Stylesheet" type="text/css" href="<?php echo $base_url?>style/css/jquery.jmodal.css" />
<script language="javascript" src="<?php echo $base_url?>style/js/jquery.jmodal.js"></script>
<script>
	var js_url="<?php echo $base_url;?>";
	var link_page_name="<?php echo $link_page_name;?>";
</script>
<script language="javascript" src="<?php echo $base_url;?>style/js/BE/admin_be_user.js"></script>

<br />
<!-- begin search -->
<form name="trueform2" id="trueform2" method="POST" action="<?php echo $base_url;?>admin_be_user/search/" onSubmit="return submitSearch('<?php echo $base_url;?>admin_be_user/search/',1);">
<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#3D84CC" style="margin:auto; line-height:20px;">
  <tr>
    <td width="18%" bgcolor="#FFFFFF" class="title2">
    Tên đăng nhập:&nbsp;
      <input type="text" name="txt_username" id="txt_username" style="width:250px;" value="<?php if (isset($txt_username)) echo $txt_username;?>" />     
	  <input type="hidden" name="isPost" value="1">
	  <input type="hidden" name="h_cur_page" id="h_cur_page" value="">
      <input type="submit" name="btn_Search" id="btn_Search" value="Tìm kiếm" style="width:70px;" class="button" />  
    </td>
  </tr>
</table>
</form>

<!-- end   search -->
<br />&nbsp;&nbsp;&nbsp;<span class="text_1">Danh sách <?php echo $page_title;?>:</span><br />
<div id="div_ajax_content" style="padding:0; margin:0;">
<?php if (count($aBe_user)>0){?>
<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#3D84CC" style="margin:auto; line-height:20px;">
  <tr>
    <td width="6%" align="center" bgcolor="#3D84CC" class="title1">#</td>
    <td width="20%" align="center" bgcolor="#3D84CC" class="title1">UserName</td>
	<td width="39%" align="center" bgcolor="#3D84CC" class="title1">Mô tả</td>
	<td width="10%" align="center" bgcolor="#3D84CC" class="title1">Loại</td>
	<td width="10%" align="center" bgcolor="#3D84CC" class="title1">Trạng thái</td>
    <td width="13%" align="center" bgcolor="#3D84CC" class="title1">Thao tác</td>    
  </tr>
<?php
		$i=1;
		$bgcolor="#FFFFFF";
		foreach($aBe_user as $key=>$item):
			if ($i%2==0){$bgcolor="#EBF2F8";}else{$bgcolor="#FFFFFF";}
?>  
  <tr bgcolor="<?php echo $bgcolor;?>">
    <td width="6%" align="center" class="index"><?php echo $i;?></td>
    <td width="20%" align="center" class="content" style="text-align:left;">
    <?php echo $item->user_name;?>
	</td>
    <td width="39%" align="center" class="content" style="text-align:left;">
    <?php echo $item->description;?></td>	
    <td width="10%" align="center" class="content" style="text-align:center;">
    <?php if ($item->level=="0") echo "Admin hệ thống"; else if ($item->level=="1") echo "Quản trị viên";
	?></td>	
    <td width="10%" align="center" class="content" style="text-align:center;">
    <?php if ($item->status=="0") echo "<span title='Không thể đăng nhập' style='color:red;'>Inactive</span>"; else if ($item->status=="1") echo "<span title='Có thể đăng nhập'>Active</span>";
	?></td>		
    <td width="13%" class="content" style="text-align:center;"><a href="<?php echo $base_url.$page_name;?>/be_user_edit/<?php echo $item->be_user_id;?>">Chỉnh sửa</a><?php if ($item->level != "0") { ?> | <a href="javascript:void(0);" onclick="del(<?php echo $item->be_user_id;?>)">Xóa</a><?php } ?></td>
  </tr>  
    <?php
				$i++;
      endforeach; 
    ?>  
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="text-align:center;">
      <?php	echo $paging;	?>     
    </td>
  </tr>
</table>
<input type="hidden" id="h_cur_page" value="<?php echo $cur_page;?>" />
<input type="hidden" id="h_Search" value="<?php echo "\$search";?>" />
<input type="hidden" id="h_webpage_id" value="<?php echo $webpage_id;?>" />
</div>
<?php
} //if
else
{
?>
<table width="98%" border="0" cellpadding="0" cellspacing="1" style="margin:auto;">
  <tr>
  	<td style="text-align:center;" height="60px">Chưa có / Không tìm thấy dữ liệu.</td>
  </tr>
</table>  
<?php	
}
?>
<br /><br />
